home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_sol_spiderdrop.cog < prev    next >
Text File  |  1999-11-15  |  1KB  |  56 lines

  1. # Jones 3D Cog Script
  2. #
  3. # SOL_SpiderDrop.cog
  4. #
  5. # [GGJ] && [TRM]
  6. #
  7. # (C) 1999 LucasArts Entertainment Company LLC. All Rights Reserved
  8. #
  9. # ========================================================================================
  10. symbols
  11.  
  12.     message        crossed
  13.     message     killed
  14.     
  15.     surface        trig_Spider
  16.     
  17.     thing        spiderGhost0
  18.     thing        spider0            local
  19.     
  20.     template    tpl_Spider=spider_wall        local
  21.     
  22.     int         population=0    local
  23.     
  24. end
  25.  
  26. # ========================================================================================
  27.  
  28. code
  29.  
  30. crossed:
  31.  
  32.     if(population >= 1) return;
  33.     
  34.     population = 1;
  35.  
  36.     Sleep(RandBetween(0, 2));
  37.     
  38.     spider0 = CreateThing(tpl_Spider, spiderGhost0);
  39.     CaptureThing(spider0);
  40.     
  41.     #sends message to spider_wall's class cog, saying "user0" (27)
  42.     SendMessageEx(GetThingClassCog(spider0), 27, spider0, 0, 0, 0);
  43.     
  44.     return;
  45.  
  46. # ========================================================================================
  47.  
  48. killed:
  49.     
  50.     population = 0;
  51.     return;
  52.     
  53. # ========================================================================================
  54. end
  55.  
  56.